package com.tbvtc.agriculturalcreditchainserver2025.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 农作物施肥用量核查表（含标准/农户用量、合格判断及AI建议）
 * </p>
 *
 * @author author
 * @since 2025-10-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("crop_fertilizer_check")

public class CropFertilizerCheck implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("crop_name")
    private String cropName;

    @TableField("fertilizer_type")
    private String fertilizerType;

    @TableField("standard_dosage")
    private String standardDosage;

    @TableField("farmer_dosage")
    private String farmerDosage;

    @TableField("is_qualified")
    private Boolean isQualified;

    @TableField("reference_basis")
    private String referenceBasis;

    @TableField(value = "check_date",fill = FieldFill.INSERT)
    private LocalDate checkDate;

    @TableField("ai_suggestion")
    private String aiSuggestion;


    @TableField(condition = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @TableField("stage_type")
    private String stageType;


}
